csd: hide invisible borders when tiled or fullscreen
authorMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jul 2013 18:53:05 +0000 (14:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jul 2013 19:53:30 +0000 (15:53 -0400)
This is the expected behavior, and matches what mutter does.

gtk/gtkwindow.c

index 737a3b56dcdd099b0d911d88aaaa4132b71ecdd7..6e0684e5f205f8088d9a3234e01f13c708ba301a 100644 (file)
@@ -6224,7 +6224,10 @@ update_border_windows (GtkWindow *window)
                                 &border);
   gtk_style_context_restore (context);
 
-  if (!priv->resizable || gtk_window_get_maximized (window))
+  if (!priv->resizable ||
+      priv->tiled ||
+      priv->fullscreen ||
+      gtk_window_get_maximized (window))
     {
       resize_h = resize_v = FALSE;
     }